import http from '@/utils/request'

/** 登录接口
 * @function login 登录接口
 * @param {Object} data 登录数据
 * @param {String} data.account 账号
 * @param {String} data.password 密码
 *  */
export const login = (data) => {
  return http({
    url: '/login',
    method: 'post',
    data
  })
}

export const test = () => {
  return http({
    url: '/test',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data: {
      name: 'test',
      files: 123
    }
  })
}
